<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no">
		<meta name="mobileOptimized" content="width">
		<meta name="handheldFriendly" content="true">
		<meta name="format-detection" content="telephone=no">
		<meta name="apple-touch-fullscreen" content="yes">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="Cache-Control" content="max-age=0">
		<meta http-equiv="expires" content="0">
	<title>经纪人注册-美的合伙人</title>
	<link rel="stylesheet" type="text/css" href="css/style.css" >
	<script type="text/javascript">
	function myFunction(){
				var username=document.getElementById("username").value;
				var phone=document.getElementById("phone").value;
				var IDmunber=document.getElementById("IDmunber").value;
				
				if (checkName(username)){
					if (checkMobile(phone)){
					    if (verifyCard(IDmunber)){}
					}
				}
	}
	function checkName(username){
		var re =/^$/
		if (re.test(username)){
			alert("请输入正确的姓名");
			return false;
		}
		else{
			return true;
		}
		
	}
	function checkMobile(phone){
		var re =/^1\d{10}$/
		if (re.test(phone)){
			
			return true;
		}
		else{
			alert("请输入正确的手机号码");
			return false;
		}
	}
	function verifyCard(IDmunber){
			var reg =/(^\d{15}$)|(^\d{17}([0-9]|X)$)/
			if(reg.test(IDmunber)){
				return true;
			}
			else{
				alert("请输入正确的身份号码");
				return false;
			}
	}
	
    	</script>
</head>
<body>

<section class="main animated fadeInDown">
	<div class="main-box">
		<h1 class="jjr-register"></h1>
		<p class="rb-row"><span style="color:red;float: left;position: absolute;height: 40px;line-height: 40px;">*</span><input type="text" id="username" placeholder="姓名" class="input" /></p>
		<p class="rb-row"><input type="tel" id="phone" placeholder="手机" class="input" /></p>
		<p class="rb-row rb-select">
			<select id="job" class="select">
				<option value="" id="sflx">选择您的身份类型</option>
				<option value="personal">个人</option>
				<option value="mdcyz">美的城业主</option>
				
			</select>
			<i class="icon-down-open-big"></i>
		</p>
		<p class="rb-row"><input type="tel" id="IDmunber" placeholder="身份证" class="input" /></p>
		<div class="rb-row">
		
		<p class="rb-row registerRuleCheck"><input type="checkbox" checked="checked" id="agree" />&nbsp;<a href="">我同意以上注册协议</a></p>
		<div class="recommend-tips">
			<h6>提示</h6>
			<p>请输入正确的姓名以及电话，否则可能无法结佣。</p>
		</div>
		<p class="rb-submit"><input type="button" value="注册" onclick="myFunction()"  class="btn" id="J_submitReg" /></p>
		<p class="register-tips" style="text-align: left;">注册条款</p>
	</div>
	</div>
</section>
	<footer class="foot"><a>© 美的地产</a></footer>	
</body>
</html>